package simple.server;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService
public class ServerTest {
    public String sayHello() {
        return "hello webservice";
    }

    public String sayHelloWorld(@WebParam(name = "username")String name) {
        return "hello " + name;
    }

    public static void main(String[] args) {
        Endpoint.publish("http://localhost:9001/SimpleService", new ServerTest());
        System.out.println("Publish Success~");//看到这个输出代表发布成功了

    }
}
